import { get,del,patch,post,upload ,put} from '../../utils/request';

//分销首页
export function distributionIndex(obj) {
    return get(`/distribute/index`,obj);
}
//收入详情
export function incomeDetail(obj) {
    return get(`/distribute/income`,obj);
}
//加入小店
export function joinStore(obj) {
    return post(`/distribute/join`,obj);
}
//修改我的小店信息
export function editStore(obj) {
    return put(`/distribute/my/store`,obj);
}
//可提现金额
export function putForward() {
    return get(`/distribute/my/store/cash`);
}
//提现
export function putForwardCash(obj) {
    return post(`/distribute/my/store/cash`,obj);
}
//我的小店详情页面
export function myStoreDetail(obj) {
    return get(`/distribute/my/store/detail`,obj);
}
//订单明细
export function myStoreOrderDetail(obj) {
    return get(`/distribute/orders`,obj);
}
//详情报表接口
 export function reportDetail() {
     return get(`/distribute/report`);
 }
 //搜索商品
 export function distributeSearch(obj) {
     return get(`/distribute/search`,obj);
 }
 //统计数据
  export function statistics(obj) {
      return get(`/distribute/statistics`,obj);
  }

 //获取会员信息
   export function meberDetail() {
       return get('/member/detail');
   }
 //获取会员信息
   export function delGoods(obj) {
       return del('/distribute',obj);
   }
   //我的团队
      export function myTeamDetail() {
          return get('/distribute/my/team');
      }